package com.smcaiot.jftorg.domain.org;

import com.smcaiot.core.domain.AbstractIdentity;

import java.util.UUID;

/**
 * @Author: cz
 * @Date: 2023/10/7
 * @Description:
 */
public class OrgId extends AbstractIdentity<String> {
    public OrgId(String value) {
        super(value);
    }

    public static OrgId from(String value) {
        return new OrgId(value);
    }

    public static OrgId next() {
        return new OrgId(UUID.randomUUID().toString());
    }
}
